<?php

class IndexController extends Zend_Controller_Action
{

    public function init()
    {
        /* Initialize action controller here */
    }

    public function indexAction()
    {
        //get all intances
        $newsModel = new Administration_Model_News();
        $newsArticles = $newsModel->getArticlesForDisplay(5);
        
        $pollModel = new Administration_Model_Poll();
        $poll = $pollModel->getPollForDisplayById(5);
        
        //send to view
        $this->view->articles = $newsArticles;
        $this->view->poll = $poll;
        
        
    }


}

